<?php
session_destroy();
setcookie("PHPSESSID", null, time(), "/");

// 退出后, 跳转到登录页面
header("location:http://localhost/shop/loginPage.php");
?>